﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="EmployeesInOut.aspx.cs" Inherits="Employees_EmployeesInOut" %>

<%@ Register Src="../Control/DepartmentDList.ascx" TagName="DepartmentDList" TagPrefix="uc1" %>
<%@ Register Src="../Control/SelUser.ascx" TagName="SelUser" TagPrefix="uc2" %>
<%@ Register Assembly="ZLTextBox" Namespace="BaseText" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
        datamember="ViewEmpInOutList">
    </infolight:webdatasource>
    <table cellpadding="0" cellspacing="5" class="TbSearch">
        <tr>
            <td style="width: 80px;">
                查询类型：
            </td>
            <td>
                <asp:DropDownList ID="ddlStatus" runat="server">
                    <asp:ListItem Value="-1">未选择</asp:ListItem>
                    <asp:ListItem Value="1">入职时间</asp:ListItem>
                    <asp:ListItem Value="0">离职时间</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="width:80px">
                查询时间：
            </td>
            <td colspan="4">
                <asp:TextBox ID="Accession" runat="server" 
                    onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" CssClass="Wdate" /></asp:TextBox>&nbsp;
                至 &nbsp;
                <asp:TextBox ID="Dimission" runat="server" 
                    onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" CssClass="Wdate" /></asp:TextBox>
            </td>
            
        </tr>
        <tr>
            <td style="width: 40px">
                部门：
            </td>
            <td>
                <uc1:DepartmentDList ID="Depart" runat="server" />
            </td>
            <td style="width: 40px;">
                员工：
            </td>
            <td style="width: 140px">
                <uc2:SelUser ID="SelUser" runat="server" />
            </td>
            <td style="width: 80px;">
                员工状态：
            </td>
            <td>
                <asp:DropDownList ID="DDlEmpstatus" runat="server">
                    <asp:ListItem Value="-1">未选择</asp:ListItem>
                    <asp:ListItem Value="1">在职</asp:ListItem>
                    <asp:ListItem Value="0">离职</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
            <span class="roundbtn">
                    <asp:LinkButton ID="SearchButton" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;查&nbsp;&nbsp;询&nbsp;&nbsp;&nbsp;&nbsp;"
                        OnClick="Search_Click"></asp:LinkButton>
                </span>
            </td>
        </tr>
    </table>
    <div class="tabsI" runat="server" id="Record">
        <ul>
            <li>
                <asp:LinkButton ID="Search" runat="server" OnClick="Search_Click" Text="<span> 入职＼离职 查 询 </span>"
                    CssClass="UnHover"></asp:LinkButton>
            </li>
            <li>
                <asp:LinkButton ID="LinkButton1" runat="server"  Text="<span> 人 员 状 态 统 计 </span>"
                    CssClass="UnHover" OnClientClick="location.href='EmployeesInfoStatistics.aspx?ItemParam=empstatus';return false"></asp:LinkButton>
            </li>
            <li>
                <asp:LinkButton ID="LeaveList" runat="server"  Text="<span> 已 离 职 列 表 </span>"
                    CssClass="UnHover" OnClientClick="location.href='EmpLeaveList.aspx';return false"></asp:LinkButton>
            </li>
            <li>
                <asp:LinkButton ID="LeaveAdd" runat="server"  Text="<span> 员 工 离 职 </span>"
                    CssClass="UnHover" OnClientClick="location.href='EmpLeave.aspx?action=add';return false"></asp:LinkButton>
            </li>
             <li runat="server" id="liDownLoad">
                <asp:LinkButton ID="DownLoad" runat="server" Text="<span style='color:#eeff99;'> 列表数据导出 </span>" 
                    CssClass="UnHover" onclick="DownLoad_Click"></asp:LinkButton>
            </li>
        </ul>
        <div style="float: right; margin-right: 10px;">
            <asp:Literal ID="LitCurrentCount" runat="server"></asp:Literal>
        </div>
    </div>
    <infolight:webgridview id="wgvMaster" runat="server" cellpadding="5" datasourceid="Master"
        forecolor="#333333" width="100%" aborticonurl="../Image/UIPics/Abort.gif" addiconurl="../Image/UIPics/Add.gif"
        applyiconurl="../Image/UIPics/Apply.gif" canceliconurl="../Image/UIPics/Cancel.gif"
        mouseoveraborticonurl="../Image/UIPics/Abort2.gif" mouseoveraddiconurl="../Image/UIPics/Add2.gif"
        mouseoverapplyiconurl="../Image/UIPics/Apply2.gif" mouseovercanceliconurl="../Image/UIPics/Cancel2.gif"
        mouseoverokiconurl="../Image/UIPics/OK2.gif" mouseoverqueryiconurl="../Image/UIPics/Query2.gif"
        okiconurl="../Image/UIPics/OK.gif" queryiconurl="../Image/UIPics/Query.gif" headerstylewrap="False"
        pagesize="15" onrowdatabound="wgvMaster_RowDataBound">
        <footerstyle backcolor="#507CD1" forecolor="White" font-bold="True"></footerstyle>
        <navcontrols>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" 
                ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" 
                ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" 
                ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>
        <columns>
                <asp:BoundField DataField="EmployeeID" HeaderText="员工工号" 
                    SortExpression="EmployeeID" />
                <asp:BoundField DataField="EmpName" HeaderText="员工姓名" 
                    SortExpression="EmpName" />
                <asp:TemplateField HeaderText="性别" SortExpression="Sex">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Sex") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Sex" runat="server" Text='<%# Bind("Sex") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="DepartmentName" HeaderText="所属部门" 
                    SortExpression="DepartmentName" />
                <asp:BoundField DataField="JobName" HeaderText="职位"
                    SortExpression="JobName" />
                <asp:BoundField DataField="IDCard" HeaderText="身份证号" 
                    SortExpression="IDCard" />
                <asp:TemplateField HeaderText="入职日期" SortExpression="Accession">
                    <EditItemTemplate>
                        <InfoLight:WebDateTimePicker ID="wdtViewEmpInOutListAccessionE" runat="server" 
                            DateFormat="None" DateTimeType="DateTime" Localize="False" MaxYear="2050" 
                            MinYear="1950" Text='<%# Bind("Accession") %>' ToolTip="Accession" 
                            UseButtonImage="True" Width="100px"></InfoLight:WebDateTimePicker>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <InfoLight:WebDateTimePicker ID="wdtViewEmpInOutListAccessionF" runat="server" 
                            DateFormat="None" DateTimeType="DateTime" Localize="False" MaxYear="2050" 
                            MinYear="1950" ToolTip="Accession" UseButtonImage="True" Width="100px"></InfoLight:WebDateTimePicker>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lViewEmpInOutListAccession" runat="server" 
                            Text='<%# Bind("Accession", "{0:d}") %>' ToolTip="Accession"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="离职日期" SortExpression="Dimission">
                    <EditItemTemplate>
                        <InfoLight:WebDateTimePicker ID="wdtViewEmpInOutListDimissionE" runat="server" 
                            DateFormat="None" DateTimeType="DateTime" Localize="False" MaxYear="2050" 
                            MinYear="1950" Text='<%# Bind("Dimission") %>' ToolTip="Dimission" 
                            UseButtonImage="True" Width="100px"></InfoLight:WebDateTimePicker>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <InfoLight:WebDateTimePicker ID="wdtViewEmpInOutListDimissionF" runat="server" 
                            DateFormat="None" DateTimeType="DateTime" Localize="False" MaxYear="2050" 
                            MinYear="1950" ToolTip="Dimission" UseButtonImage="True" Width="100px"></InfoLight:WebDateTimePicker>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lViewEmpInOutListDimission" runat="server" 
                            Text='<%# Bind("Dimission", "{0:d}") %>' ToolTip="Dimission"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="DepartmentId" HeaderText="所属部门" 
                    SortExpression="DepartmentId" Visible="False" />
</columns>
        <pagersettings mode="NumericFirstLast"></pagersettings>
        <rowstyle backcolor="#EFF3FB" horizontalalign="Center"></rowstyle>
        <editrowstyle backcolor="#2461BF"></editrowstyle>
        <selectedrowstyle backcolor="#D1DDF1" forecolor="#333333" font-bold="True"></selectedrowstyle>
        <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center"></pagerstyle>
        <headerstyle backcolor="DeepSkyBlue" forecolor="White" font-bold="True"></headerstyle>
        <alternatingrowstyle backcolor="White" bordercolor="White"></alternatingrowstyle>
    </infolight:webgridview>
</asp:Content>
